package com.xwn.bean.auth;

import org.apache.shiro.authc.AuthenticationToken;
/**
 * token实体
 * @Author duandw
 * @Date 2019/11/18 18:19
 **/
public class JWTToken implements AuthenticationToken{
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
